module.exports = class extends think.Model {
  // 获取完整HTTP请求路径
  async getFullPath(id) {
    if (id) {
      const image = await this.where({
        id: id,
      }).find();
      if (think.isEmpty(image)) {
        return false;
      }
      return `${image['base_url']}${image['path']}`;
    } else {
      return false;
    }
  }
};
